<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>修改课程</title>
	<load href="__CSS__/menu.css" />
	<load href="__JS__/jQuery/jquery.js" />
   	<load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
				//beforeSubmit:  function(){alert("before");},  // pre-submit callback
				success:       complete,  // post-submit callback
				error:function(){alert("error");},
				dataType: 'json'
			});
           
			function complete(data){
			if (data.status==1)
			{
				window.location='__URL__/coursedetail';
             }else{
				$('#result').html(data.info).show();
             }
		}
	});
	</script>
</head>
<body bgcolor="#EEEEEE">
	<layout name="Auth:header" />
	<iframe src="__URL__/menu" style="position:absolute; left:40px; top:350px; width:180px; height:190px;" frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no”></iframe>
	<div style="position:relative; top:-50px; left:240px; font-size:12px; width:60%;">
	<a href='__APP__/index/index'>主页</a>>
	<a href='__URL__/index'>后台管理</a>>
	<a href='__URL__/coursedetail'>课程管理</a>>
	编辑课程
	</div>
	<div style="width:70%; position:relative; left:160px;" align="right"><a href="__URL__/coursedetail" style="text-decoration:none">返回</a></div>
	<div id="result" style="position:relative; left:700px;"></div>
	<form id="form1" method="post" action="__URL__/courseupdate" >
	<input type="hidden" name="id" value={$vo.id}>
	
	<div id="add_course" align="right" >
		<div id="form_list" >
			<table border="0" align="center">
				<tr>
					<td width="300" >课程名称{$vo.name}</td>
					<td width="300">所属院系{$vo.dname}</td>
				</tr>
				<tr>
					<td width="300" >修改课程名称：<input type="text" name="name" value={$vo.name}></td>				
				
					<td width="300" >修改管理院系：<select name="departmentid">
													  
													<volist name='deplist' id='vo'>
												  		<option value =	{$vo.id}>{$vo.name}</option>
												  	</volist>
												  </select>
												  
				  </td>
				</tr>
				<tr>
					<td><input type="submit" value="更新"></td>
				</tr>
		  </table>
		</div>
	</div>
	</form>
</body>
</html>